<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="com.ogilvy.cms.bean.CmsTemplateField" table="CMS_TEMPLATE_FIELD" >
        <id name="ctfId" type="java.lang.Integer">
            <column name="CTF_ID" />
            <generator class="identity" />
        </id>
       <property name="ctfCmtId" type="java.lang.Integer">
            <column name="CTF_CMT_ID"/>
        </property>
       
       <!--  <many-to-one name="ctfCmt" class="com.ogilvy.cms.bean.CmsTemplate">
        	<column name="CTF_CMT_ID" not-null="true" />
        </many-to-one>
       --> 
        <property name="ctfViewName" type="java.lang.String">
            <column name="CTF_VIEW_NAME" length="50" />
        </property>
        
         <property name="ctfName" type="java.lang.String">
            <column name="CTF_NAME" length="50" />
         </property>
        
         <property name="ctfType" type="java.lang.String">
            <column name="CTF_TYPE" length="50" />
         </property>
        
         <property name="ctfLength" type="java.lang.Integer">
            <column name="CTF_LENGTH" />
         </property>
         
         <property name="ctfWidth" type="java.lang.String">
            <column name="CTF_WIDTH" length="10" />
         </property>
         
         <property name="ctfHeight" type="java.lang.String">
            <column name="CTF_HEIGTH" length="10" />
         </property>
         
         <property name="ctfOrderNum" type="java.lang.Integer">
            <column name="CTF_ORDER_NUM" />
         </property>
         
         <property name="ctfSiteType" type="java.lang.String">
            <column name="CTF_SITE_TYPE" length="50" />
         </property>
         
         <property name="ctfLastuser" type="java.lang.String">
            <column name="CTF_LASTUSER" length="50" />
         </property>
         
         <property name="ctfLasttime" type="java.util.Date">
            <column name="CTF_LASTTIME"/>
         </property>
        
    </class>
</hibernate-mapping>
